<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="../../pccommon.jsp"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>个人中心账号安全</title>
<link type="text/css" rel="stylesheet" href="${staticPath}/pccss/grzx.css" />
<script type="text/javascript" src="${staticPath}/js/app/setting/pcverify.js"></script>
</head>
<body>
	<div id="wrapper">
		<c:import url="../layout/header2.jsp"></c:import>
		<div id="main">
			<div id="mainw">
				<c:import url="../layout/leftNav.jsp">
					<c:param name="leftNav" value="account" />
				</c:import>
				<input type="hidden" name="type" id="type" value="${type }" />
				<input type="hidden" name="verify" id="verify" value="${verify }" />
				<input type="hidden" name="loginname" id="loginname" value="${loginname }" />
				<input type="hidden" id="showImageCode" name="showImageCode" value="${showImageCode }" />
				<div class="mainw_right">
					<div class="mainw_right1">
						<img src="${staticPath}/pcimages/a1.png" />
						<c:if test="${type == 0 }">
							<h1>修改手机号</h1>
						</c:if>
						<c:if test="${type == 1 }">
							<h1>修改邮箱</h1>
						</c:if>
					</div>
					<div class="mainw_right4">
						<label>选择验证方式：</label>
						<select id="choose">
							<option <c:if test="${verify == 0 }">selected="selected"</c:if> value="0">手机验证</option>
							<c:if test="${ableEmail == true}">
								<option <c:if test="${verify == 1 }">selected="selected"</c:if> value="1">邮箱验证</option>
							</c:if>
						</select>
					</div>
					<div class="mainw_right4">
						<h2>
							<c:if test="${verify == 0 }">
								当前手机号：
							</c:if>
							<c:if test="${verify == 1 }">
								当前邮箱：
							</c:if>
							${loginname }
						</h2>
					</div>
					<div class="mainw_right4">
						<label>验证码：</label>
						<input type="text" id='code' value="请输入验证码" style="width: 150px;" onfocus="focusplace(this,'请输入验证码')"
							onblur="blurplace(this,'请输入验证码')"/>
						<c:if test="${verify == 0 }">
							<a href="javascript:;" id="getCodeByMobile">获取手机验证码</a>
						</c:if>
						<c:if test="${verify == 1 }">
							<a href="javascript:;" id="getCodeByEmail">获取邮箱验证码</a>
						</c:if>
					</div>
					<div class="mainw_right4">
						<c:if test="${type == 0 }">
							<label>新手机号：</label>
							<input type="text" id='account' name="account" value="请输入新手机号" onfocus="focusplace(this,'请输入新手机号')"
								onblur="blurplace(this,'请输入新手机号')"/>
						</c:if>
						<c:if test="${type == 1 }">
							<label>新邮箱地址：</label>
							<input type="text" id='account' name="account" value="请输入新邮箱地址" onfocus="focusplace(this,'请输入新邮箱地址')"
								onblur="blurplace(this,'请输入新邮箱地址')"/>
						</c:if>
					</div>
					<div class="mainw_right4" id="divImageCode">
						<label>图形验证码：</label>
						<input type="text" id="imagecode" name="imagecode" value="请输入验证码" style="width: 120px;" maxlength="4"
							onfocus="focusplace(this,'请输入验证码')" onblur="blurplace(this,'请输入验证码')"/>
						<img id="getImageCode" src="<%=appPath %>/member/getImageCode.htm" />
						<a href="javascript:reloadVerifyCode('getImageCode');">换一张</a>
					</div>
					<div class="mainw_right4">
						<c:if test="${type == 0 }">
							<label>新手机验证码：</label>
						</c:if>
						<c:if test="${type == 1 }">
							<label>新邮箱验证码：</label>
						</c:if>
						<input type="text" id='newcode' value="请输入验证码" style="width: 150px;" onfocus="focusplace(this,'请输入验证码')"
							onblur="blurplace(this,'请输入验证码')"/>
						<c:if test="${type == 0 }">
							<a href="javascript:;" id="getCodeByNewMobile">获取新手机验证码</a>
						</c:if>
						<c:if test="${type == 1 }">
							<a href="javascript:;" id="getCodeByNewEmail">获取新邮箱验证码</a>
						</c:if>
					</div>
					<div class="mainw_right5">
						<span></span>
						<input type="button" name="edit" id="edit" onclick="edit()" value="确 定" />
						<span style="background: url(${staticPath}/pcimages/btn3.png) no-repeat;"></span>
					</div>
				</div>
			</div>
		</div>
		<c:import url="../layout/footer.jsp"></c:import>
	</div>
</body>
</html>
